package ppp.ch14.strategy;

/**
 * Strategy 실행기
 */
public class ApplicationRunner {
    private Application itsApplication = null;

    public ApplicationRunner(Application app) {
        itsApplication = app;
    }

    public void run() {
        itsApplication.init();
        while (!itsApplication.done())
            itsApplication.idle();
        itsApplication.cleanup();
    }
}
